<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->systemName;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>

<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/jquery.colorbox.js"></script>
<link href="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/colorbox2.css" rel="stylesheet" type="text/css"/>
</head>

<body>
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：<a href="<?php echo $this->projectUrl();?>">角色列表</a> &gt; <span id="focus">列表</span></div>
			<div id="topOtherMenu"><input type="button" name="insert" id="insert" value="添加" class="button" /></div>
		</div>
		<div id="body">
			<div id="search">
				<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl();?>">
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								<input type="text" id="keyword" name="keyword" value="" class="input">
								<input type="submit" name="button" id="button" value="查找" class="button" />
							</td>
						</tr>
					</table>
				</form>
			</div>
			<div id="content">
				<form id="listForm" name="listForm" method="post" action="">
					<table class="table">
						<tr class="subject">
							<td width="5%" class="checkBoxTd">选择</td>
							<td width="8%">ID</td>
							<td>姓名</td>
							<td width="8%">操作</td>
						</tr>
						<tr class="dataLine">
							<td width="5%" class="checkBoxTd"><input type="checkbox" name="select[]" id="select0" class="selectCheckBox" value="1" /></td>
							<td width="8%">1</td>
							<td>张三</td>
							<td width="8%"><a href="<?php echo $this->projectUrl(array('controller'=>'test', 'action'=>'edit'));?>">编辑</a></td>
						</tr>
						<tr class="dataLine">
							<td width="5%" class="checkBoxTd"><input type="checkbox" name="select[]" id="select1" class="selectCheckBox" value="2" /></td>
							<td width="8%">2</td>
							<td>李四</td>
							<td width="8%"><a href="javascript:void(0);" onclick="$(document).ready(function(){$.fn.colorbox({href:'<?php echo $this->projectUrl(array('controller'=>'test', 'action'=>'message'));?>?'+Math.random()});});">编辑</a></td>
						</tr>
						<tr class="dataLine">
							<td width="5%" class="checkBoxTd"><input type="checkbox" name="select[]" id="select2" class="selectCheckBox" value="3" /></td>
							<td width="8%">3</td>
							<td>王五</td>
							<td width="8%"><a href="#">编辑</a></td>
						</tr>

					</table>
					<table class="controlTable">
						<tr>
							<td align="left">
								<input type="button" name="all" id="all" value="全选" class="button" onclick="$('.selectCheckBox').attr('checked', true);"/>
								<input type="button" name="cancel" id="cancel" value="取消" class="button" onclick="$('.selectCheckBox').attr('checked', false);"/>
								<input type="submit" name="delete" id="delete" value="删除选中" class="button" onclick="return del();"/>
							</td>
							<td align="right"><a href="#">上一页</a> [1] 2 [3] [4] <a href="#">下一页</a>&nbsp;</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
</div>
<script language="javascript">
function del()
{
	if (confirm('确定删除吗？')) {
		$("#listForm").attr('action', 'delete');
		$("#listForm").submit();
		return true;
	} else {
		return false;
	}
}
</script>
</body>
</html>